<template>
  <div class="content">
    <Tabpanel ref="tabpanel" :tabItems="tabItems" />
  </div>
</template>

<script>
import Tabpanel from '@/components/container/Tabpanel';
import TabpanelMixin from '@/components/container/TabpanelMixin.js';
export default {
  name: 'psrs',
  components: { Tabpanel },
  mixins: [TabpanelMixin],

  data() {
    return {
      tabItems: [
        {
          text: '线路',
          key: 'LineCrud',
          view: 'archives/psrs/LineCrud',
          authClz: this.$constant.GROUP_CLZ.regions.map(x => x.id)
        },
        {
          text: '变电站',
          key: 'SubstationsCrud',
          view: 'archives/psrs/SubstationsCrud',
          authClz: this.$constant.GROUP_CLZ.regions.map(x => x.id)
        },
        {
          text: '间隔',
          key: 'BayCrud',
          view: 'archives/psrs/BayCrud',
          authClz: [this.$enum.Clz.line.id, this.$enum.Clz.substation.id]
        },
        {
          text: '采集单元',
          key: 'CollectorCrud',
          view: 'archives/psrs/CollectorCrud',
          authClz: [this.$enum.Clz.bay.id]
        }
      ]
    };
  },

  mounted() {},

  methods: {}
};
</script>

<style lang="less" scoped>
</style>
